﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Collections.Generic;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using TarreOA.TarreOABLL;
using TarreOA.TarreOAModels;

public partial class admin_ShowProduct : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Product product = ProductManager.FindByProductId(Convert.ToInt32(Request.QueryString["pid"]));
            lblProductName.Text = product.ProductName;
            lblProductType.Text = product.ProductType;
            lblComputation.Text = product.Computation;
            lblCostPrice.Text = product.CostPrice.ToString();
            lblSalePrice.Text = product.SalePrice.ToString();
            lblSupply.Text = product.Supply.SupplyName;
            lblDescription.Text = product.Description;
        }
    }
}
